﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MetaCollection.ContentService.Http
{
	/// <summary>
	/// 401 - Access denied Subcodes.
	/// These specific error codes are used to indicate a more specific 401 access denied message
	/// </summary>
	[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1027:MarkEnumsWithFlags")]
	public enum SubStatus401
	{
		None = 0,
		/// <summary>
		/// Logon Failed
		/// </summary>
		[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "Logon")]
		LogonFailed = 1,
		/// <summary>
		/// Logon failed due to server configuration.
		/// </summary>
		[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "Logon")]
		LogonFailedByConfig = 2,
		/// <summary>
		/// Unauthorized due to ACL on resource.
		/// </summary>
		UnauthorizedByAcl = 3,
		/// <summary>
		/// Authorization failed by filter.
		/// </summary>
		UnauthorizedByFilter = 4,
		/// <summary>
		/// Authorization failed by ISAPI/CGI application.
		/// </summary>
		UnauthorizedByCgi = 5,
		/// <summary>
		/// Access denied by URL authorization policy on the Web server. This error code is specific to IIS 6.0.
		/// </summary>
		UnauthorizedByServerPolicy = 7
	}
}
